-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UUID to JSON output #1342
Add UUID to JSON output #1342
Conversation
7867c61
to
e31bd53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running through the testing section, all tests worked as expected. However, I did have some thoughts about ordering for the new report_uuid
field for readability purposes and a bit more error handling and unit testing around New-Guid
.
Would a future TODO be to also add this report UUID somewhere in the HTML report as well so that the two reports (JSON and HTML) could be correlated? Also, so multiple HTML report runs could be disambiguated (other than using the timestamp).
PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/Invoke-ScubaCached.Tests.ps1
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed newest updates which addressed previous comments. Ran unit tests which passed and ran several variations of Invoke-Scuba
and Invoke-ScubaCached
which worked as well. Looks good.
PowerShell/ScubaGear/Modules/CreateReport/ParentReport/ParentReport.html
Outdated
Show resolved
Hide resolved
@nanda-katikaneni ready to be merged. The failed smoke tests all appear to be due to the Power Platform issue #1345. |
@adhilto Looks like there is a merge conflict preventing a rebase in the branch. May require manual review. |
Co-authored-by: David Bui <[email protected]>
e1ea8e6
to
e87e373
Compare
@nanda-katikaneni I successfully rebased with main and now all tests are passing. Ready to merge. |
🗣 Description
Add UUID to the JSON output (both raw provider output and ScubaResults.json).
💭 Motivation and context
Closes #1336.
🧪 Testing
I performed the following tests:
Invoke-Scuba
. Worked as expected.Invoke-Scuba -KeepIndividualJson
. Worked as expected.Invoke-ScubaCached -ExportProvider $false
with input generated without theKeepIndividualJson
flag. Worked as expected.Invoke-ScubaCached -ExportProvider $false
with input generated with theKeepIndividualJson
flag. Worked as expected.(assuming you manually fix Bug with Invoke-SCuBACached if no provider json #1329 as Fix functional testing and cached output errors #1334 hasn't been merged yet).Invoke-ScubaCached -KeepIndividualJson -ExportProvider $false
with input generated without theKeepIndividualJson
flag. Worked as expected.Invoke-ScubaCached -KeepIndividualJson -ExportProvider $false
with input generated with theKeepIndividualJson
flag.Invoke-ScubaCached -ExportProvider $false
with input generated without theKeepIndividualJson
flag and without the "report_uuid" field (to ensure backwards compatibility with output created before this PR). Worked as expected.Invoke-ScubaCached -ExportProvider $false
with input generated with theKeepIndividualJson
flag and without the "report_uuid" field. Worked as expected.Invoke-SCuBACached
. Worked as expected.Invoke-SCuBACached -KeepIndividualJson
. Worked as expected.✅ Pre-approval checklist
✅ Pre-merge checklist
PR passed smoke test check.
Feature branch has been rebased against changes from parent branch, as needed
Use
Rebase branch
button below or use this reference to rebase from the command line.Resolved all merge conflicts on branch
Notified merge coordinator that PR is ready for merge via comment mention
✅ Post-merge checklist